4ad9fc2bff4a4b868b6d0fd6b0c6c41f38282336,source/net/yacy/search/snippet/TextSnippet.java,TextSnippet,loadDocument,#LoaderDispatcher#URIMetadataRow.Components#HandleSet#CacheStrategy#DigestURI#boolean#ResultClass#,246

Before Change


            // first try to get the snippet from metadata
            String loc;
            final boolean noCacheUsage = url.isFile() || url.isSMB() || cacheStrategy == null;
            if (containsAllHashes(loc = comp.dc_title(), queryhashes)) {
                // try to create the snippet from information given in the url itself
                init(url.hash(), loc, ResultClass.SOURCE_METADATA, null);
                return null;
            } else if (containsAllHashes(loc = comp.dc_creator(), queryhashes)) {
                // try to create the snippet from information given in the creator metadata
                init(url.hash(), loc, ResultClass.SOURCE_METADATA, null);
                return null;
            } else if (containsAllHashes(loc = comp.dc_subject(), queryhashes)) {
                // try to create the snippet from information given in the subject metadata
                init(url.hash(), loc, ResultClass.SOURCE_METADATA, null);
                return null;
            } else if (containsAllHashes(loc = comp.url().toNormalform(true, true).replace('-', ' '), queryhashes)) {
                // try to create the snippet from information given in the url
                init(url.hash(), loc, ResultClass.SOURCE_METADATA, null);

After Change


            final Request request = loader.request(url, true, reindexing);
            final boolean inCache = de.anomic.http.client.Cache.has(comp.url());
            final boolean noCacheUsage = url.isFile() || url.isSMB() || cacheStrategy == null;
            if (containsAllHashes(loc = comp.dc_title(), queryhashes) ||
                containsAllHashes(loc = comp.dc_creator(), queryhashes) ||
                containsAllHashes(loc = comp.dc_subject(), queryhashes) ||
                containsAllHashes(loc = comp.url().toNormalform(true, true).replace('-', ' '), queryhashes)) {